package com.mornd.gulimall.seckill.controller;

import com.mornd.gulimall.common.core.result.AjaxResult;
import com.mornd.gulimall.seckill.service.ISeckillService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: mornd
 * @dateTime: 2023/8/29 - 13:47
 */

@Slf4j
@RestController
@RequestMapping("/seckill")
public class SeckillController {

    @Resource
    private ISeckillService service;

    @GetMapping("/currentSeckillSkus")
    public AjaxResult currentSeckillSkus() {
        return AjaxResult.success(service.currentSeckillSkus());
    }
}
